package com.jufanshare.myblog.entity;
import java.math.*;
import java.util.Date;
import java.sql.Timestamp;
import org.beetl.sql.core.annotatoin.Table;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;


/* 
* 
* gen by beetlsql 2019-01-21
*/
@Table(name="myblog.user")
public class User   {
	public interface RegisterEmailGroup{};
	public interface RegisterGroup{};
	public interface LoginGroup{};
	private Integer id ;
	@Email(message = "邮箱格式不正确",groups = {RegisterEmailGroup.class,RegisterGroup.class,LoginGroup.class})
	private String email ;
	private String headimg ;
	private String nickname ;
	@NotBlank(message = "密码不能为空",groups = {RegisterGroup.class,LoginGroup.class})
	@Size(min = 9,max = 16,message = "密码长度9-16位",groups = {RegisterGroup.class,LoginGroup.class})
	private String password ;
	private String qqopenid ;
	private String salt ;
	private String userstate ;
	private Date registerdatetime ;
	private String keyWord;

	//业务字段
	private String emailCode;
	private String imgCode;
	
	public User() {
	}
	
	public Integer getId(){
		return  id;
	}
	public void setId(Integer id ){
		this.id = id;
	}
	
	public String getEmail(){
		return  email;
	}
	public void setEmail(String email ){
		this.email = email;
	}
	
	public String getHeadimg(){
		return  headimg;
	}
	public void setHeadimg(String headimg ){
		this.headimg = headimg;
	}
	
	public String getNickname(){
		return  nickname;
	}
	public void setNickname(String nickname ){
		this.nickname = nickname;
	}
	
	public String getPassword(){
		return  password;
	}
	public void setPassword(String password ){
		this.password = password;
	}
	
	public String getQqopenid(){
		return  qqopenid;
	}
	public void setQqopenid(String qqopenid ){
		this.qqopenid = qqopenid;
	}
	
	public String getSalt(){
		return  salt;
	}
	public void setSalt(String salt ){
		this.salt = salt;
	}
	
	public String getUserstate(){
		return  userstate;
	}
	public void setUserstate(String userstate ){
		this.userstate = userstate;
	}
	
	public Date getRegisterdatetime(){
		return  registerdatetime;
	}
	public void setRegisterdatetime(Date registerdatetime ){
		this.registerdatetime = registerdatetime;
	}

	public String getKeyWord() {
		return keyWord;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}

	public String getEmailCode() {
		return emailCode;
	}

	public void setEmailCode(String emailCode) {
		this.emailCode = emailCode;
	}

	public String getImgCode() {
		return imgCode;
	}

	public void setImgCode(String imgCode) {
		this.imgCode = imgCode;
	}
}
